package com.summerli.service;

import com.summerli.common.ResponseResult;
import com.summerli.common.seriviceverificationcode.VerifyCodeResponse;

public interface VerifyCodeService {
    /**
     * 根据不同的身份和手机号生成验证码
     * @param identity 身份标识
     * @param phoneNumber 手机号
     * @return
     */
    public ResponseResult<VerifyCodeResponse>  generate(int identity , String phoneNumber);

    /**
     * 校验验证码
     * @param identity
     * @param phoneNumber
     * @param code
     * @return
     */
    public ResponseResult<VerifyCodeResponse> verify(int identity, String phoneNumber, String code);
}
